IOMMU/VT-d: wire common device reserved memory API
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Thu, 3 Nov 2022 08:12:11 +0000 (09:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 3 Nov 2022 08:12:11 +0000 (09:12 +0100)
commit2d9b3699136d20e354a94daefebbeefa9ceec7b6
tree5647b3325341218ea6cd1a05f6db2df628d0191d
parent0751a75e3996cf6efd3925a90b4776660d8df2bc
IOMMU/VT-d: wire common device reserved memory API

Re-use rmrr= parameter handling code to handle common device reserved
memory.

Move MAX_USER_RMRR_PAGES limit enforcement to apply only to
user-configured ranges, but not those from internal callers.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Release-acked-by: Henry Wang <Henry.Wang@arm.com>
xen/drivers/passthrough/vtd/dmar.c